package bupt.party.online.dao;

import java.util.List;

import bupt.party.online.model.Branch;
import bupt.party.online.model.BranchNews;

public interface IBranchDao  {
	public Branch findBranchById(int id);
	public List<Branch> findChildBranchesByID(int id);
	public List<Branch> findParentBranchesByID();
	public Branch queryBranchByBranchName(String branchname);
	public void deleteBranch(Branch branch);
	public void saveBranch(Branch branch);
	public void updateBranch(Branch branch);
	public List<Branch> queryAll();
	public int getCountByBranchID(int id);
	public String getBranchName(int id);
	public List<Branch> getResultsByPage(int tag, int firstResult,
			int pageSize);
	public int getResultCountByTag(int id);
	public int getCount();
	boolean checkName(String name);
	
	public List<Branch> getLevel2Branches();
}
